<?php if (!defined('THINK_PATH')) exit();?><!doctype html>
<html>
<head>
<meta charset="utf-8">
<title>iruiyou_make</title>
<script src="<?php echo (C("web_root")); ?>Public/Js/jquery-1.8.2.min.js"></script>
<style type="text/css">
body,ul,div{margin:0; padding:0; list-style:none; font:15px '微软雅黑'; color:#555;}

#body_wrap{width:1200px; height:auto; background-color:rgba(250,250,250,1); border-radius:5px; margin-top:10px; overflow:hidden;}
#body_header{background-color:#666; color:#FFF; font:25px Verdana, Geneva, sans-serif; height:70px; padding:30px 0 0 10px;}

.div_title{ width:auto; height:30px; background-color:rgba(240,240,240,1); padding:10px 0 0 10px; border-bottom:#999 1px solid; cursor:default;}
.div_title:hover{background-color:rgba(230,230,230,1);}
.div_content{background-color:rgba(250,250,250,1); overflow:hidden; height:0px;}
.table_content{padding:10px; margin:10px 0 10px 0; border-radius:2px;}
.table_content td,.table_content th{padding:10px 0 10px 0; text-align:left; width:100px;}
.table_content th{border-bottom:#666 1px solid;}

.text_1{width:200px; height:25px; border:#999 1px solid; border-radius:1px; margin:0; padding:0;}
</style>
</head>

<body>
<div id="html_wrap" align="center">
<table id="body_wrap" border="0" cellpadding="0" cellspacing="0">
	<tr><td><div id="body_header">Iruiyou_make</div></td></tr>
    
    <tr><td><div id="div_make_title" class="div_title">1.打包游戏</div></td></tr>
    <tr><td>
    	<div id="div_make_content" class="div_content" align="center">
        	<table id="table_make_game" border="0" cellpadding="0" cellspacing="0" class="table_content">
            	<tr><td>游戏选择:</td><td>
                	<select name="game_name" id="game_name" class="text_1">
                    	<option value="moon">江湖无双</option>
                    </select>
                </td></tr>
                    </select>
            	<tr><td>版本型号:</td><td><input type="text" id="game_version" class="text_1"></td></tr>
                <tr><td>更新内容:</td><td><input type="text" id="game_content" class="text_1"></td></tr>
                <tr><td valign="top">渠道选择:</td><td>
                	<select name="game_channel" id="game_channel" class="text_1">
                    	<option value="and_360">安卓-360
                        <option value="and_uc">安卓-UC
                        <option value="and_91">安卓-91
                    </select>
                </td></tr>
                <tr><td colspan="2" align="center"><input type="button" value="开始编译" id="button_make"></td></tr>
            </table>
        </div>
    </td></tr>
    
    <tr><td><div id="div_down_title" class="div_title">2.下载游戏</div></td></tr>
    <tr><td>
    	<div id="div_down_content" class="div_content" align="center">
        	<table id="table_down_game" border="0" cellpadding="0" cellspacing="0" class="table_content">
            	<tr><th>序号</th><th>名称</th><th>版本</th><th>渠道</th><th>更新内容</th><th>下载</th></tr>
                <tr><td>1</td><td>江湖2015</td><td>1.1.0</td><td>当乐</td><td><input type='button' value='查看' onClick='showDetail(\"detail\")'></td><td>下载</td></tr>
            </table>
        </div>
    </td></tr>
    
    <tr><td><div id="div_log_title" class="div_title">3.记录查询</div></td></tr>
    <tr><td>
    	<div id="div_log_content" class="div_content" align="center">
        	<table id="table_log_game" border="0" cellpadding="0" cellspacing="0" class="table_content">
            	<tr><th>序号</th><th>名称</th><th>版本</th><th>渠道</th><th>更新内容</th><th>IP地址</th></tr>
                <tr><td>1</td><td>江湖2015</td><td>1.1.0</td><td>当乐</td><td><input type='button' value='查看' onClick='showDetail(\"detail\")'></td><td>10.0.1.43</td></tr>
            </table>
        </div>
    </td></tr>
</table>
</div>
</body>
<script language="javascript">
//内容隐现
$("#div_make_title").click(function(){
	if($("#div_make_content").height()>10){
		$("#div_make_content").animate({height:0},300);
	}else{
		$("#div_make_content").animate({height:500},300);
	}
});

$("#div_down_title").click(function(){
	if($("#div_down_content").height()>10){
		$("#div_down_content").animate({height:0},300);
	}else{
		$("#div_down_content").animate({height:500},300);
	}
});

$("#div_log_title").click(function(){
	if($("#div_log_content").height()>10){
		$("#div_log_content").animate({height:0},300);
	}else{
		$("#div_log_content").animate({height:500},300);
	}
});
//ajax编译
$("#button_make").click(function(){
	var name = $("#game_name").val();
	var version = $("#game_version").val();
	var channel = $("#game_channel").val();
	var content = $("#game_content").val();
	
	if(version == "" || content == ""){
		alert("请将信息填写完全!");
	}else{
		$.get("../Make/doAjax?game_name="+name+"&game_version="+version+"&game_channel="+channel+"&game_content="+content,null,function(data){ alert(data);}).fail(function(){alert('Ajax fail!');});
	}
});
</script>
</html>